﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using InfoJetSoft.Service.Entity;
using InfoJetSoft.Service.Util;
using System.Security.Cryptography;
using System.Security.Cryptography.Xml;
using System.Security.Principal;
using System.Security.Cryptography.X509Certificates;

//CID 2081 //2014.01.11 //Begin
namespace InfoJetSoft.Service.Worker
{
    class ListAttachmentFileAddWorker
    {
        public static void addFile(Form form)
        {
            string attachmentId = form.ParamTable["xdoc_param_list_attachment_id"] as string;
            XmlElement attachmentElement = DOMUtil.findNodeByJetId(form, attachmentId) as XmlElement;
            if (attachmentElement != null)
            {
                string value = attachmentElement.InnerText;
                string file = form.ParamTable["xdoc_param_add_list_attachment_file"] as string;
                value = value + "\n" + file;
                attachmentElement.InnerText = value;
            }
        }
    }
}
//CID 2081 //2014.01.11 //End